//
//  SLDeployViewModel.h
//  StarLight
//
//  Created by Duke.wu on 16/5/30.
//  Copyright © 2016年 Duke.Wu. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, DeployViewModelType) {
  DeployViewModelTypeShipOwner,
  DeployViewModelTypeGoodOwner,
};



@interface SLDeployViewModel : NSObject

@property (nonatomic, strong) NSMutableArray *dataSource;

- (instancetype)initWithType:(DeployViewModelType)type;

- (void)refreshGoodsWith:(NSInteger)state gid:(NSString *)gid;

- (void)refreshUpdateGoods;

- (void)next;

- (void)first;

@end

@interface SLDeployGood : NSObject

@property (nonatomic, copy) NSString *hwmc;

@property (nonatomic, assign) NSInteger matchs;

@property (nonatomic, copy) NSString *hwzw;

@property (nonatomic, copy) NSString *gid;

@property (nonatomic, copy) NSString *qsgk;

@property (nonatomic, copy) NSString *jzrq;

@property (nonatomic, copy) NSString *time;

@property (nonatomic, copy) NSString *ddgk;

@property (nonatomic, assign) NSInteger state;

@end


#pragma mark -  SLDeployShip

@interface SLDeployShip : NSObject
/**状态*/
@property (nonatomic, assign) NSInteger state;
/**推荐货源*/
@property (nonatomic, assign) NSInteger matchs;
/**船位置*/
@property (nonatomic, copy) NSString *shiploc;

@property (nonatomic, copy) NSString *boatname;
/**船舶id*/
@property (nonatomic, copy) NSString  *bid;

@property (nonatomic, copy) NSString *freespace;

@property (nonatomic, copy) NSString *statetime;

@property (nonatomic, copy) NSString *reservetime;

@property (nonatomic, assign) CGFloat shiplat;

@property (nonatomic, assign) NSInteger shiplon;
/**目的地*/
@property (nonatomic, copy) NSString *goalloc;

@property (nonatomic, assign) NSInteger goallon;

@property (nonatomic, assign) NSInteger goallat;

@property (nonatomic, assign) NSInteger loads;


@end


